import { Login } from "@/api/interface";
import { PORT1 } from "@/api/config/servicePort";

import http from "@/api";

/**
 * @name 登录模块
 */
// * 用户登录接口
export const loginApi = (params: Login.ReqLoginForm) => {
	return http.post<User.Info>(PORT1 + `/Login/index`, params);
};

// * 获取菜单列表
export const getMenuList = () => {
	return http.get<User.Info>(PORT1 + `/Login/getUserInfo`);
};
